home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / LIB / GLUT / glut_warp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-12  |  507 b   |  24 lines

  1.  
  2. /* Copyright (c) Mark J. Kilgard, 1996, 1997. */
  3.  
  4. /* This program is freely distributable without licensing fees
  5.    and is provided without guarantee or warrantee expressed or
  6.    implied. This program is -not- in the public domain. */
  7.  
  8. #include <stdlib.h>
  9. #include <stdarg.h>
  10. #include <stdio.h>
  11.  
  12. #include "glutint.h"
  13.  
  14. /* CENTRY */
  15. void APIENTRY
  16. glutWarpPointer(int x, int y)
  17. {
  18.   XWarpPointer(__glutDisplay, None, __glutCurrentWindow->win,
  19.     0, 0, 0, 0, x, y);
  20.   XFlush(__glutDisplay);
  21. }
  22.  
  23. /* ENDCENTRY */
  24.